﻿@using NotesVaultOnline.Class.Helper;

<div id="controlPanel">
    <div class="btn-group">
        <a href="@Url.Content("~/")" class="btn"><i class="icon-user"></i>@(User.Identity.IsAuthenticated ? User.Identity.Name : "Guest")</a>
        <button class="btn dropdown-toggle" data-toggle="dropdown">
            <span class="caret"></span>
        </button>
        <!-- Render sub menu -->
        @(User.Identity.IsAuthenticated ? Html.Partial("_ControlPanelAuthenticated") : Html.Partial("_ControlPanelAnonymous"))
    </div>
    @Html.RenderCustomScript("ControlPanel.js", NovoHtmlHelper.ScriptType.Partials)
</div>
